package cn.edu.xjtu.competiton;

import java.util.Scanner;

/**
 * @author Hydrion-QLz
 * @date 2022-05-15 13:24
 * @description
 */
public class first {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String n = sc.nextLine();
        char[] line1 = sc.nextLine().toCharArray();
        char[] line2 = sc.nextLine().toCharArray();
        int count1 = 0;
        int count2 = 0;
        int max1 = 0;
        int max2 = 0;

        for (int i = 1; i < line1.length; i++) {
            if (line1[i] == line1[i - 1]) {
                count1++;
            } else {
                max1 = Math.max(count1, max1);
                count1 = 0;
            }
            if (line2[i] == line2[i - 1]) {
                count2++;
            } else {
                max2 = Math.max(count2, max2);
                count2 = 0;
            }
        }
        System.out.println(max1 > max2 ? "Alice Bob" : "Bob Alice");
    }
}
